this was throwing error for some reason