removed the layed code as it's not used