implementation of a rude controller