perform method done for Function class