created some function for improvement readability