added proper assertion