working woth controller