seperated into utils file