made the code user firendly