first version after testing (using postman)