updated code for accessibility