working implementation of stuff