working on functions. weird locked git file after git crash so cross your fingers