modified the CREATE method