print and alert stmts removed