more methods added to logic