adding template functions for common functions
removed unwanted files