The present invention relates to compounds of formula (I) or pharmaceutical acceptable salts,wherein R1, R2, R3, R4, and B are defined in the description. The present invention relates also to compositions containing said compounds which are useful for inhibiting kinases such as wee-1 and methods of treating diseases such as cancer.