little implementation of mechanics