add funtion getById