refactored code and fixed bug
refactored code
updated version