added methods to controllers