moved code to modifyContact and merged everything