removed duplicate create selection function