seperated the code.