working without frames
working and tested without frame