struct and errors
error with sqrt and free