implemented helper methods