added new classfunction