refactor, less repeated code
deleted file from repo to keep it clean