created functions for interface