commiting prototype function