this was throwing an error