added variables to make my code more easy