added in alert but didn't work