crud working

but with errors