module for common methods