removed test code
fixed type and removed delete functionality