inserts finished;fixed constraints; code more readable