put logic in separete folder