moved to be near other scripts, added alignment before drawing