restyling the script / was written long time ago