solved overlap problem