compile error and lastName bug fix for id