removing assign function