cleaned splash code a bit