added systempause function