made method declaration better