resolved issue with id assigment