re-removing function main