changed method to findByIds