adding correct checked functionality