removed unneccesary list conversion