The present invention comprises compounds that are effective inhibitors of integrins, particularly αvβ3 and αvβ5 integrins. Particularly, the compounds are of formula (I) and pharmaceutically acceptable salts thereof wherein X, Y1W, R1 to R5, A and B are defined according to the disclosure herein.