variables declaration were not good