added time and shrinking, fixed a big