add error handling to it