added row scheduling algorithim